package com.pers.springcloud.controller;

import com.pers.springcloud.service.IMessageProvider;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: 黄建
 * @Date: 2020/3/13 17:36
 */
@RestController
public class SendMessageController {

    @Autowired
    private IMessageProvider messageProvider;

    @GetMapping("sendMessage")
    public String send(){
        return messageProvider.send();
    }
}
